cmake_minimum_required(VERSION 3.5)

add_library(spdm_crypt_lib STATIC "")

target_include_directories(spdm_crypt_lib
    PRIVATE
        ${LIBSPDM_DIR}/include
        ${LIBSPDM_DIR}/os_stub
)

target_sources(spdm_crypt_lib
    PRIVATE
        libspdm_crypt_hash.c
        libspdm_crypt_hmac.c
        libspdm_crypt_hkdf.c
        libspdm_crypt_asym.c
        libspdm_crypt_cert.c
        libspdm_crypt_aead.c
        libspdm_crypt_dhe.c
        libspdm_crypt_rng.c
        libspdm_crypt_pqc_asym.c
        libspdm_crypt_pqc_kem.c
        fips/libspdm_selftest.c
        fips/libspdm_selftest_hmac.c
        fips/libspdm_selftest_aes_gcm.c
        fips/libspdm_selftest_rsa_ssa.c
        fips/libspdm_selftest_rsa_pss.c
        fips/libspdm_selftest_hkdf.c
        fips/libspdm_selftest_ecdh.c
        fips/libspdm_selftest_sha2.c
        fips/libspdm_selftest_sha3.c
        fips/libspdm_selftest_ffdh.c
        fips/libspdm_selftest_ecdsa.c
        fips/libspdm_selftest_eddsa.c
)